﻿using TI_BLE_HCI_ClientLib.BaseEntities;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCICommands
{
    public class HCICommand_HCIEXT_SystemReset : HCIVendorSpecificCommand
    {
        private const byte CMD = 0x1D;

        public enum ResetTypeEnum
        {
            HARD_RESET=0,
            SOFT_RESET=1
        }

        public enum Return_Status
        {
            Success = 0
        }

        public HCICommand_HCIEXT_SystemReset(ResetTypeEnum resetType)
            : base(HCIVendorSpecificCommandCSG.HCI, CMD)
        {
            var pars = new BaseEntityParameter[1];

            pars[0] = new ByteParameter((byte)resetType);
            
            base.addParameters(pars);
        }
    }
}